#!/usr/bin/evn python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   文件名称 :     grlazy-object-proxy
   文件功能描述 :   功能描述
   创建人 :       小钟同学
   创建时间 :          2021/12/22
-------------------------------------------------
   修改描述-2021/12/22:         
-------------------------------------------------
"""
import lazy_object_proxy
#
# def expensive_func():
#     from time import sleep
#     print('starting calculation')
#     # just as example for a very slow computation
#     sleep(2)
#     print('finished calculation')
#     # return the result of the calculation
#     return 10
#
# obj = lazy_object_proxy.Proxy(expensive_func)
# # function is called only when object is actually used
# print(obj)  # now expensive_func is called
#
# print(obj)  # the result without calling the expensive_func